import request from '@/utils/request'


// 查询全球商品列表
export function listGlobalPro(query) {
  return request({
    url: '/shopee/globalProduct/list',
    method: 'get',
    params: query
  })
}

// 同步店铺全球商品
export function syncGlobalPro(query) {
  return request({
    url: '/shopee/globalProduct/sync',
    method: 'post',
    data: query
  })
}

// 发布全球商品
export function publishProduct(products) {
  return request({
    url: '/shopee/globalProduct/publish',
    method: 'post',
    data: products,
  })
}

// 查询价格
export function getPrice(ids) {
  return request({
    url: '/shopee/globalProduct/price/' + ids,
    method: 'get',
  })
}

// 单行更新价格
export function getLinePrice(product) {
  return request({
    url: '/shopee/globalProduct/price/compute',
    method: 'post',
    data: product
  })
}

// 更新发布店铺信息
export function getPulishedShop(data) {
  return request({
    url: '/shopee/globalProduct/published',
    method: 'get',
    params: data
  })
}



